package demo3;

public class TestDemo3 {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(4);
//        myArrayList.add(4,-3);
//        myArrayList.set(2,222);
        myArrayList.remove(4);
        myArrayList.display();
    }
}
